package com.example.qrcodecamera;

public class CSVRecord {
    private int id;
    private String goodsName;
    private String staffId;
    private String operator;
    private String batch;
    private String materialId;
    private double grossWeight;
    private double tareWeight;
    private double netWeight;
    private String timestamp;

    public CSVRecord(int id,String goodsName, String staffId, String operator,
                     String batch, String materialId, double grossWeight,
                     double tareWeight, double netWeight, String timestamp) {
        this.id = id;
        this.goodsName = goodsName;
        this.staffId = staffId;
        this.operator = operator;
        this.batch = batch;
        this.materialId = materialId;
        this.grossWeight = grossWeight;
        this.tareWeight = tareWeight;
        this.netWeight = netWeight;
        this.timestamp = timestamp;
    }

    public int getId() {
        return id;
    }
    // Getter方法
    public String getGoodsName() { return goodsName; }
    public String getStaffId() { return staffId; }
    public String getOperator() { return operator; }
    public String getBatch() { return batch; }
    public String getMaterialId() { return materialId; }
    public double getGrossWeight() { return grossWeight; }
    public double getTareWeight() { return tareWeight; }
    public double getNetWeight() { return netWeight; }
    public String getTimestamp() { return timestamp; }
}